<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta name="author" content="中文Lee 360811363@qq.com">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../css/public.css" media="all">
    <!--
    * [LupMisAllowedSync]
    * 本代码为系统自动生成代码，请根据自己业务进行修改;
    * 生成时间 2022-02-20 17:19:21;
    * 版权所有 2020-2022 lizhongwen，并保留所有权利;
    * 说明: 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和使用；不允许对程序代码以任何形式任何目的的再发布;
    * 作者: 中文Lee;
    * 作者主页: http://www.lizhongwen.com;
    * 邮箱: 360811363@qq.com;
    * QQ: 360811363;
    -->
</head>

<body>
    <div class="layuimini-container">
        <div class="layuimini-main">
            <div id="form-list">
                <script id='tpl-list' type="text/template">
                    <form class="layui-form" action="">
                        <input type="hidden" name="id" value="<%:=data.id%>">
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><b style='color:red'>*</b> 原始名称</label>
                                <div class="layui-input-block">
                                    <input type="text" name="ori_name" value="<%:=data.ori_name%>" lay-verType="msg" lay-verify="required" lay-reqtext="原始名称" placeholder="请输入原始名称" autocomplete="off" class="layui-input data-check-type-none field-type-varchar ">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"> 根路径</label>
                                <div class="layui-input-block">
                                    <input type="text" name="file_path" value="<%:=data.file_path%>" lay-verType="msg" lay-verify="" lay-reqtext="根路径" placeholder="请输入根路径" autocomplete="off" class="layui-input data-check-type-none field-type-varchar ">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"> 后缀</label>
                                <div class="layui-input-block">
                                    <input type="text" name="suffix" value="<%:=data.suffix%>" lay-verType="msg" lay-verify="" lay-reqtext="后缀" placeholder="请输入后缀" autocomplete="off" class="layui-input data-check-type-none field-type-varchar ">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><b style='color:red'>*</b> 服务器端名</label>
                                <div class="layui-input-block">
                                    <input type="text" name="file_name" value="<%:=data.file_name%>" lay-verType="msg" lay-verify="required" lay-reqtext="服务器端名" placeholder="请输入服务器端名" autocomplete="off" class="layui-input data-check-type-none field-type-varchar ">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><b style='color:red'>*</b> 访问路径</label>
                                <div class="layui-input-block">
                                    <input type="text" onclick="openUploadFileBox(this,'')" thumb="" path="" exts="" name="file_url" value="<%:=data.file_url%>" lay-verType="msg" lay-verify="required" lay-reqtext="请上传访问路径" placeholder="请上传访问路径" autocomplete="off" class="layui-input upload data-check-type-none field-type-varchar">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><b style='color:red'>*</b> 服务器保存路径</label>
                                <div class="layui-input-block">
                                    <input type="text" name="server_path" value="<%:=data.server_path%>" lay-verType="msg" lay-verify="required" lay-reqtext="服务器保存路径" placeholder="请输入服务器保存路径" autocomplete="off" class="layui-input data-check-type-none field-type-varchar ">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md12">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><b style='color:red'>*</b> 缩略图</label>
                                <div class="layui-input-block">
                                    <div thumb="" path="" exts="" name="thumb" value="<%:=data.thumb%>" lup-lay-verify="required" lay-reqtext="请上传缩略图" placeholder="请上传缩略图" class="multiFile"></div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><b style='color:red'>*</b> 大小</label>
                                <div class="layui-input-block">
                                    <input type="text" name="file_size" value="<%:=data.file_size%>" lay-verType="msg" lay-verify="required" lay-reqtext="大小" placeholder="请输入大小" autocomplete="off" class="layui-input data-check-type-none field-type-varchar ">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><b style='color:red'>*</b> 上传时间</label>
                                <div class="layui-input-block">
                                    <input type="text" name="upload_time" value="<%:=data.upload_time%>" default-date="now" lay-verType="msg" lay-verify="required" lay-reqtext="上传时间" placeholder="请输入上传时间" autocomplete="off" class="layui-input data-check-type-ymdhis field-type-datetime datetime">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><b style='color:red'>*</b> 上传者账号</label>
                                <div class="layui-input-block">
                                    <input type="text" name="account" value="<%:=data.account%>" lay-verType="msg" lay-verify="required" lay-reqtext="上传者账号" placeholder="请输入上传者账号" autocomplete="off" class="layui-input data-check-type-none field-type-varchar ">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><b style='color:red'>*</b> 备注</label>
                                <div class="layui-input-block">
                                    <input type="text" name="remarks" value="<%:=data.remarks%>" lay-verType="msg" lay-verify="required" lay-reqtext="备注" placeholder="请输入备注" autocomplete="off" class="layui-input data-check-type-none field-type-varchar ">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit="" lay-filter="form-submit">立即提交</button>
                            </div>
                        </div>
                    </form>
                </script>
            </div>
        </div>
    </div>
    <script src="../../../js/run.js"></script>
    <script type="text/javascript">
        $init(function() {
            //查询数据
            var query = getQueryString("query");
            var id = getQueryString("id");
            layui.jquery("input[name='id']").val(id);
            var url = base_gateway + query;
            request(url, {
                id: getQueryString("id")
            }, function(ret) {
                var code = ret.code;
                if (code == 200) {
                    document.getElementById('form-list').innerHTML = baidu.template('tpl-list', ret);




                    //初始化上传附件
                    initUploadFile();
                    //初始化日历
                    initCalendar();
                }
            });
            var gateway = getQueryString("gateway");
            frameSubmit(base_gateway + gateway, true, function(ret) {});
        });
    </script>
</body>

</html>